package shuaige.jdk.多线程.信号量;

import java.util.concurrent.Semaphore;

public class Semaphore_使用示例2 {
    public static final Semaphore a1 = new Semaphore(1);
    public static final Semaphore a2 = new Semaphore(1);

    public static void main(String[] args) {
        LockAa la = new LockAa();
        new Thread(la).start();
        LockBb lb = new LockBb();
        new Thread(lb).start();
    }
}

